function Track() {
    this.key = '';
    this.points = [];
    this.speed = 0;
    this.avgSpeed = 0;
    this.avgMoveSpeed = 0;
    this.distance = 0;
    this.time = 0;
    this.stopTime = 0;
    this.lastTime = null;       // время последней точки в секундах от начала эпохи
    this.finished = false;
    this.owner = new User(0, 'anonymous', 'Anonymous');

    this.getAge = function() {
        if(this.lastTime != null) {
            return Date.now() / 1000 - this.lastTime;
        } else {
            return Date.now() / 1000;
        }
    }
}
